.class public abstract Lcom/a0soft/gphone/app2sd/main/AppIconWnd;
.super Landroid/app/Activity;
.source "AppIconWnd.java"

# interfaces
.implements Lcom/a0soft/gphone/app2sd/main/j;


# static fields
.field private static final x:Ljava/lang/String;

.field private static final y:Ljava/lang/String;


# instance fields
.field protected a:Z

.field protected b:Z

.field protected c:Landroid/view/View;

.field protected d:Landroid/widget/GridView;

.field protected e:Lcom/a0soft/gphone/app2sd/main/d;

.field protected f:Landroid/widget/TextView;

.field protected g:Landroid/widget/TextView;

.field protected h:Landroid/view/View;

.field protected i:Lcom/a0soft/gphone/app2sd/main/MemInfoView;

.field protected j:Z

.field private k:[Ljava/lang/String;

.field private l:Ljava/util/ArrayList;

.field private m:Z

.field private n:Landroid/content/BroadcastReceiver;

.field private o:Lcom/a0soft/gphone/app2sd/a/g;

.field private p:Z

.field private q:Z

.field private r:I

.field private s:Z

.field private t:Landroid/os/Handler;

.field private u:Lcom/a0soft/gphone/app2sd/a/a;

.field private v:Lcom/a0soft/gphone/app2sd/main/s;

.field private w:Lcom/a0soft/gphone/app2sd/main/t;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 86
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-class v1, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ".ClearAppCachesFinished"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->x:Ljava/lang/String;

    .line 90
    const-class v0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->y:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 43
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 75
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/s;

    invoke-direct {v0}, Lcom/a0soft/gphone/app2sd/main/s;-><init>()V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->v:Lcom/a0soft/gphone/app2sd/main/s;

    .line 76
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/t;

    invoke-direct {v0}, Lcom/a0soft/gphone/app2sd/main/t;-><init>()V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->w:Lcom/a0soft/gphone/app2sd/main/t;

    .line 805
    return-void
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)Z
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p:Z

    return v0
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;[Ljava/lang/String;)[Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 43
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)Lcom/a0soft/gphone/app2sd/main/t;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->w:Lcom/a0soft/gphone/app2sd/main/t;

    return-object v0
.end method

.method static synthetic c(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->t:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic d(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)Lcom/a0soft/gphone/app2sd/a/a;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->u:Lcom/a0soft/gphone/app2sd/a/a;

    return-object v0
.end method

.method static synthetic d()Ljava/lang/String;
    .locals 1

    .prologue
    .line 43
    sget-object v0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->x:Ljava/lang/String;

    return-object v0
.end method

.method private e()V
    .locals 1

    .prologue
    .line 345
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    invoke-virtual {v0}, Landroid/widget/GridView;->invalidateViews()V

    .line 346
    return-void
.end method

.method static synthetic e(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->f()V

    return-void
.end method

.method private f()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const v4, 0x7f05002b

    .line 351
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p:Z

    if-nez v0, :cond_0

    .line 384
    :goto_0
    return-void

    .line 354
    :cond_0
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->u:Lcom/a0soft/gphone/app2sd/a/a;

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/a;->e()J

    move-result-wide v0

    .line 355
    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-lez v2, :cond_1

    .line 356
    new-instance v2, Landroid/app/AlertDialog$Builder;

    invoke-direct {v2, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2, v4}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f05002c

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-static {v0, v1}, Lcom/a0soft/gphone/a/b;->a(J)Ljava/lang/String;

    move-result-object v0

    aput-object v0, v4, v5

    invoke-virtual {p0, v3, v4}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1040013

    new-instance v2, Lcom/a0soft/gphone/app2sd/main/l;

    invoke-direct {v2, p0}, Lcom/a0soft/gphone/app2sd/main/l;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x1040009

    invoke-virtual {v0, v1, v6}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_0

    .line 378
    :cond_1
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v4}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05002d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x104000a

    invoke-virtual {v0, v1, v6}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_0
.end method

.method static synthetic f(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->n()V

    return-void
.end method

.method private g()V
    .locals 3

    .prologue
    .line 389
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->b()Z

    move-result v0

    if-nez v0, :cond_0

    .line 416
    :goto_0
    return-void

    .line 391
    :cond_0
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x1080027

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05004c

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05004d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "No"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "Yes"

    new-instance v2, Lcom/a0soft/gphone/app2sd/main/m;

    invoke-direct {v2, p0}, Lcom/a0soft/gphone/app2sd/main/m;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_0
.end method

.method static synthetic g(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)Z
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    return v0
.end method

.method static synthetic h(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)I
    .locals 1
    .parameter

    .prologue
    .line 43
    iget v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->r:I

    return v0
.end method

.method private h()V
    .locals 2

    .prologue
    .line 421
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.a0soft.gphone.app2sd.AppWndRefresh"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->sendBroadcast(Landroid/content/Intent;)V

    .line 422
    return-void
.end method

.method static synthetic i(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->o()V

    return-void
.end method

.method private i()Z
    .locals 5

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 427
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->b:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->a:Z

    if-nez v0, :cond_1

    :cond_0
    move v0, v3

    .line 443
    :goto_0
    return v0

    .line 430
    :cond_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    if-nez v0, :cond_2

    move v0, v3

    goto :goto_0

    .line 432
    :cond_2
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->o(Landroid/content/Context;)I

    move-result v0

    if-lez v0, :cond_5

    .line 433
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    array-length v0, v0

    move v1, v3

    .line 434
    :goto_1
    if-ge v1, v0, :cond_4

    .line 435
    iget-object v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    aget-object v2, v2, v1

    .line 436
    invoke-static {p0, v2}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    move v0, v4

    .line 437
    goto :goto_0

    .line 434
    :cond_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_4
    move v0, v3

    .line 440
    goto :goto_0

    .line 443
    :cond_5
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    array-length v0, v0

    if-lez v0, :cond_6

    move v0, v4

    goto :goto_0

    :cond_6
    move v0, v3

    goto :goto_0
.end method

.method private j()V
    .locals 4

    .prologue
    .line 450
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    array-length v0, v0

    if-nez v0, :cond_1

    .line 471
    :cond_0
    :goto_0
    return-void

    .line 453
    :cond_1
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->o(Landroid/content/Context;)I

    move-result v0

    if-lez v0, :cond_3

    .line 455
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    array-length v0, v0

    .line 456
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    .line 457
    const/4 v1, 0x0

    :goto_1
    if-ge v1, v0, :cond_4

    .line 458
    iget-object v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    aget-object v2, v2, v1

    .line 459
    invoke-static {p0, v2}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_2

    .line 460
    iget-object v3, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 457
    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 465
    :cond_3
    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    .line 468
    :cond_4
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getParent()Landroid/app/Activity;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/app/Activity;->setPersistent(Z)V

    .line 470
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k()Z

    goto :goto_0
.end method

.method static synthetic j(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)[Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    return-object v0
.end method

.method static synthetic k(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 43
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p()V

    return-void
.end method

.method private k()Z
    .locals 3

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 476
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    .line 477
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/Activity;->setPersistent(Z)V

    move v0, v1

    .line 496
    :goto_0
    return v0

    .line 481
    :cond_0
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_1

    .line 482
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    .line 483
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/Activity;->setPersistent(Z)V

    move v0, v1

    .line 484
    goto :goto_0

    .line 487
    :cond_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 488
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->u:Lcom/a0soft/gphone/app2sd/a/a;

    invoke-virtual {v1, v0}, Lcom/a0soft/gphone/app2sd/a/a;->a(Ljava/lang/String;)Lcom/a0soft/gphone/app2sd/a/g;

    move-result-object v0

    .line 490
    if-nez v0, :cond_2

    .line 491
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k()Z

    move-result v0

    goto :goto_0

    .line 494
    :cond_2
    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->o:Lcom/a0soft/gphone/app2sd/a/g;

    .line 495
    invoke-static {p0, v0, v2}, Lcom/a0soft/gphone/app2sd/main/d;->a(Landroid/app/Activity;Lcom/a0soft/gphone/app2sd/a/g;Z)Z

    move v0, v2

    .line 496
    goto :goto_0
.end method

.method private l()V
    .locals 1

    .prologue
    .line 502
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/n;

    invoke-direct {v0, p0}, Lcom/a0soft/gphone/app2sd/main/n;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->t:Landroid/os/Handler;

    .line 542
    return-void
.end method

.method private m()V
    .locals 2

    .prologue
    .line 547
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/o;

    invoke-direct {v0, p0}, Lcom/a0soft/gphone/app2sd/main/o;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->n:Landroid/content/BroadcastReceiver;

    .line 584
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 585
    const-string v1, "com.a0soft.gphone.app2sd.PkgChanged"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 586
    const-string v1, "com.a0soft.gphone.app2sd.AppLocationChanged"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 587
    const-string v1, "com.a0soft.gphone.app2sd.AppWndRefresh"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 588
    const-string v1, "com.a0soft.gphone.app2sd.SortChanged"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 589
    sget-object v1, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->x:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 590
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->n:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 591
    return-void
.end method

.method private n()V
    .locals 2

    .prologue
    .line 596
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    invoke-virtual {v0}, Landroid/widget/GridView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 620
    :cond_0
    :goto_0
    return-void

    .line 600
    :cond_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->u:Lcom/a0soft/gphone/app2sd/a/a;

    new-instance v1, Lcom/a0soft/gphone/app2sd/main/p;

    invoke-direct {v1, p0}, Lcom/a0soft/gphone/app2sd/main/p;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V

    invoke-virtual {v0, p0, v1}, Lcom/a0soft/gphone/app2sd/a/a;->a(Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/e;)Z

    goto :goto_0
.end method

.method private o()V
    .locals 2

    .prologue
    .line 625
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/q;

    invoke-direct {v0, p0}, Lcom/a0soft/gphone/app2sd/main/q;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;)V

    .line 627
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    .line 628
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    invoke-virtual {v1, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 629
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    invoke-virtual {v0}, Landroid/widget/GridView;->clearTextFilter()V

    .line 630
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    invoke-virtual {v0}, Landroid/widget/GridView;->requestFocus()Z

    .line 631
    return-void
.end method

.method private p()V
    .locals 12

    .prologue
    const-wide/16 v10, 0x0

    .line 652
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->b:Z

    if-eqz v0, :cond_0

    .line 653
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v0

    .line 654
    const-string v1, ""

    .line 656
    const-string v2, "mounted_ro"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 657
    const-string v0, "mounted"

    .line 658
    const v1, 0x7f05000b

    invoke-virtual {p0, v1}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getString(I)Ljava/lang/String;

    move-result-object v1

    move-object v5, v1

    .line 661
    :goto_0
    const-string v1, "mounted"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 663
    :try_start_0
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v0

    .line 664
    new-instance v1, Landroid/os/StatFs;

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/os/StatFs;-><init>(Ljava/lang/String;)V

    .line 665
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockSize()I

    move-result v0

    int-to-long v3, v0

    .line 666
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockCount()I

    move-result v0

    int-to-long v6, v0

    .line 667
    invoke-virtual {v1}, Landroid/os/StatFs;->getAvailableBlocks()I

    move-result v0

    int-to-long v8, v0

    .line 669
    mul-long v1, v6, v3

    .line 670
    mul-long/2addr v3, v8

    .line 680
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->i:Lcom/a0soft/gphone/app2sd/main/MemInfoView;

    invoke-virtual/range {v0 .. v5}, Lcom/a0soft/gphone/app2sd/main/MemInfoView;->a(JJLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 718
    :goto_1
    return-void

    .line 683
    :catch_0
    move-exception v0

    const-string v0, "removed"

    move-object v1, v0

    .line 696
    :goto_2
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->i:Lcom/a0soft/gphone/app2sd/main/MemInfoView;

    const v2, 0x7f05000c

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object v1, v3, v4

    invoke-virtual {p0, v2, v3}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    move-wide v1, v10

    move-wide v3, v10

    invoke-virtual/range {v0 .. v5}, Lcom/a0soft/gphone/app2sd/main/MemInfoView;->a(JJLjava/lang/String;)V

    goto :goto_1

    .line 700
    :cond_0
    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v0

    .line 701
    new-instance v1, Landroid/os/StatFs;

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/os/StatFs;-><init>(Ljava/lang/String;)V

    .line 703
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockSize()I

    move-result v0

    int-to-long v3, v0

    .line 704
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockCount()I

    move-result v0

    int-to-long v5, v0

    .line 705
    invoke-virtual {v1}, Landroid/os/StatFs;->getAvailableBlocks()I

    move-result v0

    int-to-long v7, v0

    .line 707
    mul-long v1, v5, v3

    .line 708
    mul-long/2addr v3, v7

    .line 716
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->i:Lcom/a0soft/gphone/app2sd/main/MemInfoView;

    const-string v5, ""

    invoke-virtual/range {v0 .. v5}, Lcom/a0soft/gphone/app2sd/main/MemInfoView;->a(JJLjava/lang/String;)V

    goto :goto_1

    :cond_1
    move-object v1, v0

    goto :goto_2

    :cond_2
    move-object v5, v1

    goto :goto_0
.end method


# virtual methods
.method protected abstract a()V
.end method

.method public final a(Lcom/a0soft/gphone/app2sd/a/g;)Z
    .locals 2
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 326
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->o:Lcom/a0soft/gphone/app2sd/a/g;

    .line 327
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->a:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->b:Z

    if-nez v0, :cond_0

    .line 328
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->e:Lcom/a0soft/gphone/app2sd/main/d;

    invoke-virtual {v0, p1}, Lcom/a0soft/gphone/app2sd/main/d;->a(Lcom/a0soft/gphone/app2sd/a/g;)Z

    .line 333
    :goto_0
    return v1

    .line 331
    :cond_0
    invoke-static {p0, p1, v1}, Lcom/a0soft/gphone/app2sd/main/d;->a(Landroid/app/Activity;Lcom/a0soft/gphone/app2sd/a/g;Z)Z

    goto :goto_0
.end method

.method protected abstract b()V
.end method

.method public final c()V
    .locals 2

    .prologue
    .line 339
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.a0soft.gphone.app2sd.SortChanged"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->sendBroadcast(Landroid/content/Intent;)V

    .line 340
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 219
    const/16 v0, 0x64

    if-ne p1, v0, :cond_0

    .line 220
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    .line 221
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k()Z

    move-result v0

    if-nez v0, :cond_0

    .line 222
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->h()V

    .line 244
    :cond_0
    :goto_0
    return-void

    .line 226
    :cond_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->o:Lcom/a0soft/gphone/app2sd/a/g;

    if-eqz v0, :cond_0

    .line 227
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->t:Landroid/os/Handler;

    const/16 v1, 0x67

    iget-object v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->o:Lcom/a0soft/gphone/app2sd/a/g;

    invoke-static {v0, v1, v2}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    .line 228
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->t:Landroid/os/Handler;

    const-wide/16 v2, 0x3e8

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    goto :goto_0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0
    .parameter

    .prologue
    .line 316
    invoke-super {p0, p1}, Landroid/app/Activity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 317
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 98
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 99
    const v0, 0x7f030003

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->setContentView(I)V

    .line 101
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->h(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    .line 102
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->g(Landroid/content/Context;)I

    move-result v0

    iput v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->r:I

    .line 103
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->f(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->s:Z

    .line 105
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->i()Lcom/a0soft/gphone/app2sd/a/a;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->u:Lcom/a0soft/gphone/app2sd/a/a;

    .line 107
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/d;

    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->a:Z

    if-eqz v1, :cond_0

    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->b:Z

    if-nez v1, :cond_0

    move v1, v2

    :goto_0
    invoke-direct {v0, p0, v1}, Lcom/a0soft/gphone/app2sd/main/d;-><init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;Z)V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->e:Lcom/a0soft/gphone/app2sd/main/d;

    .line 108
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->e:Lcom/a0soft/gphone/app2sd/main/d;

    invoke-virtual {v0, p0}, Lcom/a0soft/gphone/app2sd/main/d;->a(Lcom/a0soft/gphone/app2sd/main/j;)V

    .line 110
    const v0, 0x7f0a0003

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->c:Landroid/view/View;

    .line 112
    const v0, 0x7f0a0008

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    .line 113
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    invoke-virtual {v0, v2}, Landroid/widget/GridView;->setTextFilterEnabled(Z)V

    .line 114
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->d:Landroid/widget/GridView;

    const v1, 0x7f0a0009

    invoke-virtual {p0, v1}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setEmptyView(Landroid/view/View;)V

    .line 116
    const v0, 0x7f0a000e

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->f:Landroid/widget/TextView;

    .line 117
    const v0, 0x7f0a000f

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->g:Landroid/widget/TextView;

    .line 118
    const v0, 0x7f0a000d

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->h:Landroid/view/View;

    .line 120
    const v0, 0x7f0a000a

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/a0soft/gphone/app2sd/main/MemInfoView;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->i:Lcom/a0soft/gphone/app2sd/main/MemInfoView;

    .line 122
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->a()V

    .line 124
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->m()V

    .line 126
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l()V

    .line 128
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getLastNonConfigurationInstance()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    .line 129
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    move v0, v2

    :goto_1
    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->m:Z

    .line 133
    return-void

    :cond_0
    move v1, v3

    .line 107
    goto :goto_0

    :cond_1
    move v0, v3

    .line 129
    goto :goto_1
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 249
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    .line 250
    const v1, 0x7f090001

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 252
    const v0, 0x7f0a0015

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 253
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->b:Z

    if-nez v1, :cond_0

    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->a:Z

    if-nez v1, :cond_1

    .line 254
    :cond_0
    invoke-interface {v0, v3}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    .line 260
    :goto_0
    const v0, 0x7f0a0014

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 261
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v1

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    move v1, v2

    :goto_1
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    .line 262
    return v2

    .line 256
    :cond_1
    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    goto :goto_0

    :cond_2
    move v1, v3

    .line 261
    goto :goto_1
.end method

.method public onDestroy()V
    .locals 1

    .prologue
    .line 206
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->n:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 207
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 208
    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x1

    .line 287
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 310
    :goto_0
    return v2

    .line 289
    :pswitch_0
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->j()V

    goto :goto_0

    .line 292
    :pswitch_1
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    if-nez v0, :cond_0

    move v0, v2

    :goto_1
    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    .line 293
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    invoke-static {p0, v0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Z)V

    .line 294
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->c()V

    goto :goto_0

    .line 292
    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    .line 297
    :pswitch_2
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->h()V

    goto :goto_0

    .line 301
    :pswitch_3
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/a0soft/gphone/app2sd/main/PrefWnd;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 304
    :pswitch_4
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->f()V

    goto :goto_0

    .line 307
    :pswitch_5
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->g()V

    goto :goto_0

    .line 287
    :pswitch_data_0
    .packed-switch 0x7f0a0014
        :pswitch_5
        :pswitch_0
        :pswitch_4
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public onPause()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 193
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->t:Landroid/os/Handler;

    const/16 v1, 0x64

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 195
    iput-boolean v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p:Z

    .line 197
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->w:Lcom/a0soft/gphone/app2sd/main/t;

    invoke-virtual {v0, v2}, Lcom/a0soft/gphone/app2sd/main/t;->a(Z)V

    .line 200
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 201
    return-void
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 269
    const v0, 0x7f0a0017

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 270
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    if-nez v1, :cond_0

    const v1, 0x7f05001e

    :goto_0
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    .line 271
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    if-nez v1, :cond_1

    const v1, 0x7f020022

    :goto_1
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 272
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k:[Ljava/lang/String;

    array-length v1, v1

    if-le v1, v3, :cond_2

    move v1, v3

    :goto_2
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 274
    const v0, 0x7f0a0015

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 275
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->i()Z

    move-result v1

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 281
    invoke-super {p0, p1}, Landroid/app/Activity;->onPrepareOptionsMenu(Landroid/view/Menu;)Z

    move-result v0

    return v0

    .line 270
    :cond_0
    const v1, 0x7f05001d

    goto :goto_0

    .line 271
    :cond_1
    const v1, 0x7f020021

    goto :goto_1

    :cond_2
    move v1, v2

    .line 272
    goto :goto_2

    :cond_3
    move v1, v2

    goto :goto_2
.end method

.method public onResume()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 138
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 140
    iput-boolean v4, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p:Z

    .line 142
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->n()V

    .line 144
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->t:Landroid/os/Handler;

    const/16 v1, 0x64

    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 146
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->w:Lcom/a0soft/gphone/app2sd/main/t;

    invoke-virtual {v0, v4}, Lcom/a0soft/gphone/app2sd/main/t;->a(Z)V

    .line 149
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->p()V

    .line 153
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->h(Landroid/content/Context;)Z

    move-result v0

    .line 154
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->g(Landroid/content/Context;)I

    move-result v1

    .line 155
    iget-boolean v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    if-eq v0, v2, :cond_1

    move v2, v4

    .line 163
    :goto_0
    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    .line 164
    iput v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->r:I

    .line 166
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->f(Landroid/content/Context;)Z

    move-result v0

    .line 167
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->s:Z

    if-eq v0, v1, :cond_3

    move v1, v4

    .line 169
    :goto_1
    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->s:Z

    .line 171
    if-eqz v1, :cond_2

    .line 172
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->c()V

    .line 176
    :goto_2
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->m:Z

    if-eqz v0, :cond_0

    .line 177
    iput-boolean v5, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->m:Z

    .line 178
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->k()Z

    .line 180
    :cond_0
    return-void

    .line 158
    :cond_1
    iget-boolean v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->q:Z

    if-eqz v2, :cond_4

    .line 159
    iget v2, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->r:I

    if-eq v1, v2, :cond_4

    move v2, v4

    .line 160
    goto :goto_0

    .line 174
    :cond_2
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->e()V

    goto :goto_2

    :cond_3
    move v1, v2

    goto :goto_1

    :cond_4
    move v2, v5

    goto :goto_0
.end method

.method public onRetainNonConfigurationInstance()Ljava/lang/Object;
    .locals 1

    .prologue
    .line 185
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 186
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->l:Ljava/util/ArrayList;

    .line 187
    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
